package com.atguigu.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

@SpringBootApplication
@EnableHystrixDashboard
public class HystrixDashboardMain9001 {
    public static void main(String[] args) {
        //访问http://localhost:9001/hystrix就可以看到图形化监控信息
        SpringApplication.run(HystrixDashboardMain9001.class,args);
        //监控http://localhost:8001/hystrix.stream，点击界面Monitor Stream
        //然后不停地点击http://localhost:8001/payment/circuit/1和http://localhost:8001/payment/circuit/-1
        //可以看到http://localhost:9001/hystrix/monitor?stream=http%3A%2F%2Flocalhost%3A8001%2Fhystrix.stream&delay=2000&title=
        //界面变化
    }
}
